#if !defined(__OTA_HTTP_H__)
#define __OTA_HTTP_H__

//json版本号的url
#define OTA_URL_FILEINFO "http://192.168.23.125:8000/fileinfo.json"
//下载更新包的url
#define OTA_URL_DOWNLOAD "http://192.168.23.125:8000/download/gateway"
//下载更新包的位置及名称
#define OTA_LOCAL_FILE_PATH "/home/zzzz/gateway.update"  

//获取json版本号
char * ota_http_getJson(char *url);

//下载更新包
int ota_http_download(char *url, char *local_path);

#endif // __OTA_HTTP_H__
